<template>
  <div class="element-plus">
    <el-button>按钮</el-button>
    <button @click="open">弹框</button>
  </div>
</template>
<script setup lang="ts">
import { ElMessageBox, ElMessage } from 'element-plus'
const open = () => {
  ElMessageBox.alert('This is a message', 'Title', {
    confirmButtonText: 'OK',
    callback: (action: string) => {
      console.log(action);
      ElMessage.warning('warning')
    }
  })
}
</script>
<style lang="scss" scoped>
</style>
